<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j"
    template="layout/template.xhtml">

	<ui:define name="body">
	
	    <h:form id="crmtfConsulta" styleClass="edit">
	    
	      <rich:panel >
	            <f:facet name="header">
	            	<h:outputText value="#{resourceApp.crmtfLista_titulo}"/>
	            </f:facet>
	            
	            <h:panelGrid columns="1">
	            	<h:outputText value="#{resourceApp.lbl_filtros}"/>
	            </h:panelGrid>
	
	            <div class="dialog">
	                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
	                	<h:outputLabel for="idBin" value="* #{resourceApp.crmtfConsulta_bin}"/>
						<h:inputText id="idBin" value="#{crmtfListaBean.nBin}" required="true">
							<f:convertNumber integerOnly="true"/>
						</h:inputText>
	                    <h:outputLabel for="idTarjeta" value="* #{resourceApp.crmtfConsulta_tarjeta}"/>
						<h:inputText id="idTarjeta" value="#{crmtfListaBean.nTarjeta}" required="true">
							<f:convertNumber integerOnly="true"/>
						</h:inputText>
						<h:outputLabel for="idFechaP" value="* #{resourceApp.crmtfConsulta_fecha_proy}"/>
						<a4j:outputPanel id="idFechaP" layout="block">
	                  		<rich:calendar value="#{crmtfListaBean.fechaP}" required="true" datePattern="yyyy/MM/dd"></rich:calendar>
	          		  	</a4j:outputPanel>
	                </h:panelGrid>
	            </div>
	        </rich:panel>
	        
	        <div class="actionButtons">
	            <h:commandButton id="search" value="#{resourceApp.btn_consultar}" action="#{crmtfListaBean.consultarByBinAndTarjetaAndFechaP}"/>
	        </div>
	
	    </h:form>
	    
<!-- 	    <ui:include src="/comunes/showStatus.xhtml"/> -->
<!-- 		<a4j:status onstart="#{rich:component('wait')}.show()" onstop="#{rich:component('wait')}.hide()" /> -->
	
	</ui:define>

</ui:composition>